<template>
  <div class="cardItem">
    <div class="cardImg">
      <NuxtImg class="" src="https://img-1254321318.file.myqcloud.com/img/202407/04/1720071607777.png?imageMogr2/thumbnail/325x"
        alt="logo" />
    </div>
    <div class="cardBottom">
      <div class="centerIntroduce">
        <span class="tag"> 进行中</span>
        {{ row }}
      </div>
      <div class="cardtip">
        <div class="cardDate">2023.10.2-10.4</div>
        <div class="cardAddress">黑龙江·哈尔滨</div>
      </div>
    </div>
  </div>
</template>

<script setup>
const props = defineProps({
  row: {
    type:  String,
    default: () => { }
  }
  // props
})
</script>

<style lang="scss" scoped>
.cardItem {
  width: 424px;
  height: 100%;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 4px 12px 0 rgba(0,0,0,.05);
  .cardImg {
    width: 424px;
    height: 230px;

    img {
      width: 100%;
      height: 100%;
      border-radius: 8px 8px 0px 0px;

    }
  }

  .cardBottom {
    padding: 12px;
  }

  .centerIntroduce {
    // 超出两行溢出隐藏
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 500;
    font-size: 16px;
    color: #333333;
    line-height: 26px;
    height: 48px;
    vertical-align:middle;
    .tag {
      font-size: 14px;
      color: #FFFFFF;
      line-height: 16px;
      padding: 2px 6px;
      background: #FF7D00;
    }

  }

  .cardtip {
    margin-top: 12px;
    width: 100%;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    font-size: 14px;
    color: #666666;
    display: flex;
    align-items: center;

    .cardAddress {
      margin-left: 24px;
    }
  }
 
}
</style>